package com.jintoufs.dao.scene;

import com.jintoufs.dao.QueryFilters;
import com.jintoufs.domain.scene.SceneOrder;

import java.util.List;
import java.util.Map;

public interface SceneOrderMapper {
    int deleteByPrimaryKey(String id);

    int insert(SceneOrder record);

    int insertSelective(SceneOrder record);

    SceneOrder selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(SceneOrder record);

    int updateByPrimaryKey(SceneOrder record);

    /**
     * 根据条件获取结果列表
     * @param params
     * @return
     */
    List<Map<String,Object>> getByParams(Map<String,Object> params);

    List<Map<String, Object>> selectByFilter(QueryFilters filters);

    SceneOrder selectOrderByTransactionId(String transactionId);

    List<String> orderIndex(Map<String,Object> param);
    List<String> orderPriceIndex(Map<String,Object> param);
    List<String> orderDateIndex(Map<String,Object> param);

    List<Map<String,Object>> getOrderInfoByParams(Map<String,Object> params);

    Map getOrderPriceAndCostByOrderId(String orderId);

    List<SceneOrder> getNoConfirm(Map<String,Object> param);

    int upDateOrderByStatusAndUser(Map param);
    int updateOrderNew(Map param);
}